package com.un.ebs.inventory.domain;

import java.util.Date;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.*;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import org.springframework.stereotype.Component;
import lombok.Data;
import com.un.ebs.core.metadata.DbField;

/**
 * (EntRelationRecharge)表实体类
 *
 * @author makejava
 * @since 2021-03-14 18:36:15
 */
@Data
@Component
@TableName("tb_ent_relation_recharge")
@SuppressWarnings("serial")
public class EntRelationRecharge extends Model<EntRelationRecharge> {

    @TableId(value = "id", type = IdType.UUID)
    private String id;
    
                
    @DbField(name = "ent_relation_id",  length = 40 , precision = 0)
    private String entRelationId;
                
    @DbField(name = "recharge_money",  length = 18 , precision = 4)
    private Double rechargeMoney;
        
    @TableField(fill = FieldFill.INSERT)            
    @DbField(name = "create_at",  length = 40 , precision = 0)
    private String createAt;
        
    @TableField(fill = FieldFill.INSERT)            
    @DbField(name = "create_at_name",  length = 100 , precision = 0)
    private String createAtName;
        
    @TableField(fill = FieldFill.INSERT)            
    @DbField(name = "create_time",  length = -1 , precision = 0)
    private Date createTime;

    @TableField(updateStrategy = FieldStrategy.IGNORED)
    @DbField(name = "submit_at",  length = 40 , precision = 0)
    private String submitAt;

    @TableField(updateStrategy = FieldStrategy.IGNORED)
    @DbField(name = "submit_at_name",  length = 100 , precision = 0)
    private String submitAtName;

    @TableField(updateStrategy = FieldStrategy.IGNORED)
    @DbField(name = "submit_time",  length = -1 , precision = 0)
    private Date submitTime;

    @TableField(updateStrategy = FieldStrategy.IGNORED)
    @DbField(name = "submit_status",  length = -1 , precision = 0)
    private Boolean submitStatus;

    @TableField(updateStrategy = FieldStrategy.IGNORED)
    @DbField(name = "audit_at",  length = 40 , precision = 0)
    private String auditAt;

    @TableField(updateStrategy = FieldStrategy.IGNORED)
    @DbField(name = "audit_at_name",  length = 100 , precision = 0)
    private String auditAtName;

    @TableField(updateStrategy = FieldStrategy.IGNORED)
    @DbField(name = "audit_time",  length = -1 , precision = 0)
    private Date auditTime;

    @TableField(updateStrategy = FieldStrategy.IGNORED)
    @DbField(name = "audit_status",  length = -1 , precision = 0)
    private Boolean auditStatus;
            
    @TableLogic        
    @DbField(name = "is_delete",  length = -1 , precision = 0)
    private Boolean isDelete;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }
    
}